RadioButton:
<div class="row">
	<?php echo $form->labelEx($model,'banner_display'); ?>
	<?php echo $form->radioButtonList($model, 'banner_display', CHtml::listData($model->getDisplayOptions(), 'dis_code', 'dis_name'), array('separator'=>'&nbsp;&nbsp;', 'labelOptions'=>array('style'=>'inline-block; width:auto; float:left; line-height:18px;')));?>
	<?php echo $form->error($model,'banner_display'); ?>
</div>

TextField:
<div class="row">
	<?php echo $form->labelEx($model,'banner_order'); ?>
	<?php echo $form->textField($model,'banner_order',array('size'=>10,'maxlength'=>10)); ?>
	<?php echo $form->error($model,'banner_order'); ?>
</div>

Textarea:
<div class="row">
	<?php echo $form->labelEx($model,'news_brief'); ?>
	<?php echo $form->textArea($model,'news_brief',array('style'=>'width:350px;height:150px;')); ?>
	<?php echo $form->error($model,'news_brief'); ?>
</div>

HiddenField:
<?php echo $form->hiddenField($model, 'banner_banner'); ?>

DropDownList:
<div class="row">
	<?php echo $form->labelEx($model,'banner_target'); ?>
	<?php echo $form->dropDownList($model,'banner_target',array('Current'=>'Current','New'=>'New','Popup'=>'Popup')); ?>
	<?php echo $form->error($model,'banner_target'); ?>
</div>

DateField:
<div class="row">
	<?php echo $form->labelEx($model,'banner_activedate'); ?>
	<?php $this->widget( 'application.extensions.EJuiTimePicker.EJuiTimePicker', array(
		'model' => $model,
		'attribute' => 'banner_activedate',
		'options' => array(
				'dateFormat' => 'yy-mm-dd',
				'showOn' => 'both',
				'buttonText' => 'click',
		), 
		'mode'=>'date',
	)); 
	?>
	<?php echo $form->error($model,'banner_activedate'); ?>
</div>

UploadFile:
<!-- Upload Banner -->
<div class="row">
	<label><?php echo $form->labelEx($model,'banner_banner'); ?> (920x258px)</label>
	<?php
	$this->widget('application.extensions.swfupload.SWFUpload',array(
		 'callbackJS'=>'Banner_banner_banner_callback',
		 'uploadUrl'=>CController::createUrl('uploadAjax', array('id'=>$model->banner_id)),
		 'fileTypes'=>'*.jpg;*.jpeg;*.gif;*.png;',
		)
	);
	?>
	<?php echo $form->hiddenField($model, 'banner_banner'); ?>
	<label class="hints">(Support GIF, JPG and PNG)</label> 
</div>
<div id="Banner_banner_banner_preview" class="row" style="display:<?php echo (isset($model->banner_banner) && !empty($model->banner_banner)) ? '' : 'none'; ?>">
	<?php
		if (isset($model->banner_banner) && !empty($model->banner_banner)) {
	?>
		<?php echo $form->labelEx($model,'preview'); ?>
		<?php echo CHtml::image(Yii::app()->request->hostInfo.Yii::app()->request->baseUrl.'/../thumbs/300x160/1/'.$bannerurl.$model->banner_banner, '', array('border'=>'0','class'=>'style')); ?>
	<?php
		}
	?>
	<?php echo $form->error($model,'banner_banner'); ?>
</div>
<script>
   function Banner_banner_banner_callback(name,path,oldname)  
   {
	   $("#Banner_banner_banner").val(name);
		   
	   $("#Banner_banner_banner_preview").html("<label>Preview</label><img src=\"<?php echo Yii::app()->request->hostInfo.Yii::app()->request->baseUrl.'/../thumbs/300x160/1/'.$bannerurl; ?>"+name+"\" border='0' class='style'/>"); 
	   
	   $("#Banner_banner_banner_preview").show();
   } 
</script>

HtmlEditor:
<div class="row">
	<?php echo $form->labelEx($model,'news_description'); ?>
	<?php
		$this->widget('application.extensions.editor.CKkceditor', array(
			"model"=>$model,
			"attribute"=>'news_description',
			"height"=>"160px",			
			"width"=>"630",
			"filespath"=>Yii::app()->basePath.'/../../'.$newsurl,
			"filesurl"=>Yii::app()->baseUrl.'/../'.$newsurl,
			'config' => array(
				"skin"=>"v2",
				'toolbar' => array(
					array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Find','Replace','-','SelectAll','-','Undo','Redo','-','RemoveFormat','-','ShowBlocks','Maximize','-','Source'),
					array('Bold','Italic','Underline','Strike','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','NumberedList', 'BulletedList','-','Outdent','Indent','-','HorizontalRule','SpecialChar'),
					array('TextColor','-','Image','Table','-','Link','Unlink','Anchor'),
				),
			),
		));
	?>
	<?php echo $form->error($model,'news_description'); ?>
</div>